package com.threadpool.echo;

/**
 * @author: chenhs
 * @date: Created in 16:21 2019/9/2
 **/
public class Test2 {
    public static void main(String[] args) {

        /**会执行该对象重写的run()方法*/
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("Run for Runnable.");
            }
        }) /*{
            @Override
            public void run() {
                System.out.println("Run for Thread.");
            }
        }*/.start();

    }
}
